package demo

import "github.com/gin-gonic/gin"

var (
	Router *gin.Engine
)

func GinInit() {
	gin.SetMode("release")
	Router := gin.Default()
	Router.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})

	Router.Run(":8080")
}
